package cate.game.role.res.achievement.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBAchievement;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "感悟心得的请求")
public class AchievementExpSentimentReq implements MsgInput {
    @NoteField("心得tid")
    public int tid;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getRes().achievement.sentiment(tid);
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBAchievement.EXP_SENTIMENT_REQ;
    }
}
